package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.management.express.ExpressDelivery;
import com.qk.management.express.ExpressUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 16778
 * @date 2025/10/8 21:10
 * @description
 */
@RestController
@RequestMapping("/express")
public class ExpressController {
    @GetMapping
    public Result get(@RequestParam(required = true) String requsetNo, String requestType){
        ExpressDelivery express = ExpressUtil.getExpress(requsetNo, requestType);
        System.out.println("后端获取的数据："+express);
        return Result.success(express);
    }
}
